Fixed cookie variable format issue

Ref:
http://stackoverflow.com/questions/25374231/copying-cookie-for-httr/2538
1506#25381506