chars: speed up the determination whether something is a control character

Use knowledge of UTF-8 instead of converting to wide characters first.
2 files changed