docs: def _strify(s):
      """If s is a unicode string, encode it to UTF-8 and return the results,
      otherwise return str(s), or None if s is None"""
      if s is None:
          return None
      if isinstance(s, unicode):
          return s.encode("utf-8")
      return str(s)