input_stream is a byte stream
This probably should be bytes
Fix MapAdapter
Improve support for Unicode Cookies under Python2