Fix unicode literals on Python 3.1 and 3.2

A few tests use u'' unicode literals which are not
supported in Python versions 3.1 and 3.2.