utf8 encode for python < 3