Avoided %r formatting on possibly unicode strings.

The u prefix looks bad on Python 2.