optionally specify char encoding in text response, default to UTF-8