tests/parsetext.cpp: rework to process Unicode codepoints.