Make getopts count (and thus align/paginate) in terms of codepoints not ...

...bytes.

Fix #5516.