UTFGRID: implement escaping of item and data values