normal function should support python2's unicode type