set charset in content type if UTF-8 data was encoded