Always use %r not %s for unicode strings in log messages.