Fixing encoding problem that occurs with Python 3.