add support for decoding non-ascii data in http requests.