Counting Characters in UTF-8 Strings Is Fast
canonical.org