code: def _allowed_char(c):
      
      c = ord(c)
      if c < 0:
          return False
      if c < 128:
          return _ascii_allowed[c]
      # Genereally allow unicodes, TODO: check for unicode control characters
      # characters
      return True
docs: Returns whether the given unicode char is allowed in output