Workaround for UnicodeDecodeError when redirecting stderr to a file.

$> python tagger.py
No exception raised

$> python tagger.py > somefile.txt 2>&1
Exception raised on some messages

Using reload(sys).setdefaultencoding('utf8') fixes it for me (python 2.7.3)

It happens when loading a directory having unicode chars in its path ie.