utf8.c: add utf8_strnwidth() with the ability to skip ansi sequences