Adjust setup.py to deal with non utf8 locale