[#1449] Test badly encoded request
[#1449] Handle misformated cookies
[#1449] Add debug message
Merge pull request #1885 from baloo/bugfixes/1449-malformed-cookies

Bugfixes/1449 malformed cookies