UTF-8 and Python3 compatibility.