py3: convert an exception message to bytes
One of our users ran into this (unrelated to my recent work on more specific errors).
Differential Revision: https://phab.mercurial-scm.org/D9184