For decoding cookie strings from the HTTP header (after UTF-8 decoding).
For encoding values before they hit the HTTP header.
Request cookies come from Cookie request header, and are just string values.
Response cookies end up as Set-Cookie response headers, and can have various attributes aside from just a string value.
Helper to add a cookie to a response.