HPCC-11401 Ensure strings are correctly converted to utf8 text

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>