Fix incorrect format option.

Rendering of json strings was passing control characters to a %x
formatting string, but %x only accepts Int, not Char, resulting
in an expression being thrown.