Fix malformed strings in JSON