UTF-8 utilities in Lua