A patch for cookie escaping bug

Hi,

I think I found a bug in cookie escaping.  RestClient was unescaping cookie string to send out instead of escaping.

I had an issue when I was passing Rack session between internal servers and the cookie was truncated.  The raw  cookie value contained newline ("\n") and the cookie on the receiver was truncated at the first newline.

With this patch, the problem has been fixed on my machines.


I've attached a test case, but I am new to RSpec.  I've mimiced the similar spec, but might contain unnecessary code.