diff --git a/hgext/infinitepush/__init__.py b/hgext/infinitepush/__init__.py
--- a/hgext/infinitepush/__init__.py
+++ b/hgext/infinitepush/__init__.py
@@ -1023,7 +1023,8 @@
 
     bundle = None
     try:  # guards bundle
-        bundlepath = "bundle:%s+%s" % (op.repo.root, bundlefile)
+        bundlepath = "bundle:%s+%s" % (op.repo.root,
+                                       pycompat.fsencode(bundlefile))
         bundle = hg.repository(op.repo.ui, bundlepath)
 
         bookmark = params.get('bookmark')