encoding: add function to test if a str consists of ASCII characters
Most strings are ASCII. Let's optimize for it.
Using uint64_t is slightly faster than uint32_t on 64bit system, but there
isn't huge difference.
#require docutils gettext $ $TESTDIR/check-gendoc pt_BR checking for parse errors