avoid problem with missing unicode function for python 3 (str is the equivalent)