diff --git a/mercurial/wireprotov2server.py b/mercurial/wireprotov2server.py
index a6088d10d5f2e2e8a3676b4c44da04c472915ad7_bWVyY3VyaWFsL3dpcmVwcm90b3Yyc2VydmVyLnB5..3ed53b071041b42758ea19a0a10a77ca093cff8a_bWVyY3VyaWFsL3dpcmVwcm90b3Yyc2VydmVyLnB5 100644
--- a/mercurial/wireprotov2server.py
+++ b/mercurial/wireprotov2server.py
@@ -339,7 +339,7 @@
     func, spec = COMMANDS[command]
     args = proto.getargs(spec)
 
-    return func(repo, proto, **args)
+    return func(repo, proto, **pycompat.strkwargs(args))
 
 @interfaceutil.implementer(wireprototypes.baseprotocolhandler)
 class httpv2protocolhandler(object):