Python 3 unicode compatibility.