templatefilters: declare input type as bytes where appropriate
Some test outputs changed since input is now coerced to a byte string. I
think that's okay. Maybe {date} should have some readable representation?
#require docutils gettext $ $TESTDIR/check-gendoc ru checking for parse errors