Fix encoding error for Windows with Python 2.7 (gh-59)