Remove control characters if parsing JSON fails.

Fixes #37.