fix unicode error in py3 version