Sending an unescaped cookie


In my controller, I am writing a cookie and then immediately redirecting
to an external site, as such:

cookies[:foo] = {:value => ‘’}
redirect_to ‘

The site I am directing too looks for the URL set in the foo cookie in
order to redirect back to my site. However, the cookie that is written
is escaped so that it looks like Thus the
external application considers that the URL of an improper format. Is
there any way to send the cookie as an unescaped string?