I think this needs some more care, because `pxssh` is based on the bytes interface. So, as it stands, the code below will be acting on a unicode interface if `use_localhost` is True, and a bytes interface otherwise, which is confusing.

The easiest thing might be to use the bytes interface with `b'bytes literals'`.