Send correct encoding in Content-type header