Fix unicode issues for python3