specify charset on api response

Correctly disclose the charset of api responses in the content header.