Fix Python 2 encoding issue