py3: make dummyssh compatible with Python 3
Required encoding a str to bytes and writing bytes to a file
descriptor.
Differential Revision: https://phab.mercurial-scm.org/D2170
#require docutils gettext $ $TESTDIR/check-gendoc zh_TW checking for parse errors