upgrade: byteify a few error messages
These were flagged by pytype (which is currently disabled on this file due to another failure).
Differential Revision: https://phab.mercurial-scm.org/D11905