Fixed a cooking encoding issue.
- If cookie string contains character requires escaping, the code was unescaping it instead of escaping it.

For example, a cookie data contains "\n" which should have been escaped to "%0A".  However, the code didn't escape and ended up with corrupting HTTP header.  The receiver only saw part of cookie up to the first "\n".