Invalid JSON response. Error: Control character error, possibly incorrectly encoded