call the method self.__class__ with 3 arguments: an empty string, mutable is boolean True, encoding is self.encoding, substitute the result for result.
result = self . __class__ ( '' , mutable = True , encoding = self . encoding )