HPCC-12349 Fix tojson.xml key related to issue outputting extra characters for unicode strings

JSON outputUnicode and outputUtf8 were handling byte count vs character count inconsistently when calling appendJSONStringValue.

Signed-off-by: Anthony Fishbeck <anthony.fishbeck@lexisnexis.com>