fix str to unicode for py3