code: def native(s, encoding='utf-8', fallback='iso-8859-1'):
      
  
      if isinstance(s, str):
          return s
  
      if str is unicode:  # Python 3.x ->
          return unicodestr(s, encoding, fallback)
  
      return bytestring(s, encoding, fallback)
docs: Convert a given string into a native string.