fix unicode test for python2