Fix issue with not handling unicode characters properly in cookies.