Improve handling of requests with unknown encoding. Handle x-gbk encoding.

Previously such requests were causing INTERNAL SERVER ERROR and
backtraces in the logs. Currently it just returns the 406 NOT ACCEPTABLE
response.