Здравствуйте помогите решить проблему, пытаюсь конвертировать утилитой 2to3.py файл

BeautifulSoupTests.py:

def testHandleInvalidCodec(self):
for bad_encoding in :
Traceback (most recent call last):
File “C:\Python31\Tools\Scripts\2to3.py”, line 6, in <module>
sys.exit(main(“lib2to3.fixes”))
File “C:\Python31\lib\lib2to3\main.py”, line 159, in main
options.processes)
File “C:\Python31\lib\lib2to3\refactor.py”, line 616, in refactor
items, write, doctests_only)
File “C:\Python31\lib\lib2to3\refactor.py”, line 276, in refactor
self.refactor_file(dir_or_file, write, doctests_only)
File “C:\Python31\lib\lib2to3\refactor.py”, line 656, in refactor_file
*args, **kwargs)
File “C:\Python31\lib\lib2to3\refactor.py”, line 332, in refactor_file
write=write, encoding=encoding)
File “C:\Python31\lib\lib2to3\refactor.py”, line 432, in processed_file
self.print_output(old_text, new_text, filename, equal)
File “C:\Python31\lib\lib2to3\main.py”, line 64, in print_output
print(line)
File “C:\Python31\lib\encodings\cp866.py”, line 19, in encode
return codecs.charmap_encode(input,self.errors,encoding_map)
UnicodeEncodeError: ‘charmap’ codec can't encode character ‘\xe4’ in position 37
: character maps to <undefined>

Как победить :)?