tests: avoid implicit conversion of str to unicode
On Python 2, str.encode('ascii') implicitly converts the string to unicode and
then back to str.
Since the converted value is a path, _bytespath can be used instead.
#require docutils gettext $ $TESTDIR/check-gendoc pt_BR checking for parse errors