Fixed JSON lib errors with characters >= 0x80