Make it possible to set the charset of the response, and update the content type accordingly