Wrong header used for character encoding, used Content-Encoding instead of Content-type