HPCC-12349 JSON outputUnicode outputs extra characters

JSON outputUnicode and outputUtf8 are handling byte count vs character count inconsistently when calling appendJSONStringValue.

Signed-off-by: Anthony Fishbeck <anthony.fishbeck@lexisnexis.com>
HPCC-12349 Updated based on review

Signed-off-by: Anthony Fishbeck <anthony.fishbeck@lexisnexis.com>
HPCC-12349 Updated based on review

Signed-off-by: Anthony Fishbeck <anthony.fishbeck@lexisnexis.com>
Merge pull request #6509 from afishbeck/jsonUnicodeSize

HPCC-12349 JSON outputUnicode outputs extra characters

Reviewed-by: Gavin Halliday <ghalliday@hpccsystems.com>