code: def to_bytes(self, errors='strict'):
          '''Convert to bytes.'''
          return str(self).encode(self.encoding, errors=errorsf to_bytes(self, errors='strict'):
          '''Convert to bytes.'''
          return str(self).encode(self.encoding, errors=errors)
docs: Convert to bytes.