Encoding and Content-type correction