encode response string as UTF-8