exchange: eliminate some bytes.format() calls
Differential Revision: https://phab.mercurial-scm.org/D7511