def encode(self, input, errors='strict'): return codecs.charmap_encode(input, errors, encoding_table)