Quotes in the value when quotes delimit the value? Yeah that seems dangerous to me.
> cookie-value = cookie-octet / ( DQUOTE cookie-octet DQUOTE )
> Per the grammar above, the cookie-value MAY be wrapped in DQUOTE characters. Note that in this case, the initial and trailing DQUOTE characters are not stripped. They are part of the cookie-value, and will be included in Cookie header fields sent to the server.
As for why that is, I have no idea.