remove control characters if exception in parsing JSON