cleanup bad characters in raw_response