Solve py27/py34 encoding issues