def encode(self, input, errors='strict'):
     return _codecs.__truffle_encode__(input, self.encoding, errors)
 def encode(self, input, final=False):
     return _codecs.__truffle_encode__(input, self.encoding, self.errors)[0]