Change %s to %r in logstrings