#NEWLINE# def wrapper( self , * args , **kwargs ) : #NEWLINE# #INDENT# def encode( s ) : #NEWLINE# #INDENT# return s . encode ( 'utf-8' , 'backslashreplace' ) #NEWLINE# #UNINDENT# args = filterintree ( args , args , stype = unicode ) #NEWLINE# filterintree ( kwargs , encode , stype = unicode ) #NEWLINE# return self . call ( * args , ** kwargs )