diff --git a/hggit/util.py b/hggit/util.py
index f506f3060f13c096d36e8f1390eff4f3cd4ed993_aGdnaXQvdXRpbC5weQ==..503e9abfd50e9e4f97bbe7073b416c21489cb78f_aGdnaXQvdXRpbC5weQ== 100644
--- a/hggit/util.py
+++ b/hggit/util.py
@@ -147,5 +147,5 @@
     """
     host = compat.unquote(host)
     if host.startswith(b'-'):
-        raise error.Abort(_(b'potentially unsafe hostname: %r') %
+        raise error.Abort(_(b"potentially unsafe hostname: '%s'") %
                           (host,))