diff --git a/hgext/convert/subversion.py b/hgext/convert/subversion.py
index d545b895234ac0ada32190d36b0af67b6ab8b42e_aGdleHQvY29udmVydC9zdWJ2ZXJzaW9uLnB5..7a4630536e536c0617d4aa8423d3b6469b2d0856_aGdleHQvY29udmVydC9zdWJ2ZXJzaW9uLnB5 100644
--- a/hgext/convert/subversion.py
+++ b/hgext/convert/subversion.py
@@ -535,7 +535,9 @@
                         % (name, path)
                     )
                 return None
-            self.ui.note(_(b'found %s at %r\n') % (name, path))
+            self.ui.note(
+                _(b'found %s at %r\n') % (name, pycompat.bytestr(path))
+            )
             return path
 
         rev = optrev(self.last_changed)
@@ -1208,7 +1210,10 @@
                 return relative
 
         # The path is outside our tracked tree...
-        self.ui.debug(b'%r is not under %r, ignoring\n' % (path, module))
+        self.ui.debug(
+            b'%r is not under %r, ignoring\n'
+            % (pycompat.bytestr(path), pycompat.bytestr(module))
+        )
         return None
 
     def _checkpath(self, path, revnum, module=None):