Remove non-printable characters from JSON string