call the method payload.decode with 2 arguments: string 'ascii' and string 'surrogateescape', substitute the result for self._payload.
self . _payload = payload . decode ( 'ascii' , 'surrogateescape' )