Speeds up UTF-8 parsing by calling strlen().
Also move UTF routines into a separate file, to be reused from shapers that need it.