Specify encoding to make the test working with Python 2