Python 2.7 general character codec