Improve JSON auto-detect.

JSON won't ever include control characters, but sometimes a protobuf
will be all valid ASCII chars.