Use Cookie.parse

Using `new Cookie(str)` doesn't actually set the attributes in the cookie. This is because Cookie takes in an object and in our case we only accept a string. Using `Cookie.parse` will set the appropriate properties on the cookie.

discussed in #743