code: def mapUTF8toXML(string):
      uString = string.decode("utf_8")
      string = ""
      for uChar in uString:
          i = ord(uChar)
          if (i < 0x80) and (i > 0x1F):
              string = string + uChar
          else:
              string = string + "&#x" + hex(i)[2:] + ";"
      return string
  
imports: from fontTools.misc import sstruct
  from fontTools.misc.textTools import byteord, safeEval
  from .None import DefaultTable
  import pdb
  import struct
label_desc: Use image node_id 3 for calling a global function with example usage: mapUTF8toXML(string) and returns: string