* Fix producing non-standard JSON for Infinity, -Infinity, and NaN. This could
cause errors when encoding objects into canonical JSON that previously used to
work, but were incompatible with JSON implementations in other languages.
* Use UTF-8 to fix ASCII encoding errors when data containing Unicode was
attempted to be pretty-printed.