Fixed decoding problem on Python 3