Removed invalid UTF-8 characters from JSON responses

Invalid UTF-8 characters break JSON parsing, so substitute a "?" for them.