docs: def force_bytes(s, encoding='utf-8', errors='strict'):
      """A function turns "s" into bytes object, similar to django.utils.encoding.force_bytes
      """
      # Handle the common case first for performance reasons.
      if isinstance(s, bytes):
          if encoding == 'utf-8':
              return s
          else:
              return s.decode('utf-8', errors).encode(encoding, errors)
      else:
          return s.encode(encoding, errors)