Fix encoding on python 2.