class UnicodeFilter(MessagePlugin):

    def received(self, context):
        decoded = context.reply.decode('utf-8', errors='ignore')
reencoded = decoded.encode('utf-8')
context.reply = reencoded
Синтаксический анализ Python UTF-8 XML (SUDS): удаление «недопустимого токена»