Fix encoding issue that Python 2.x didn't like