Sendo o 5.3 (não entendo muito) pode usar o [`utf8`][1] e terá as funções:

- [`utf8.char`][2]
- [`utf8.charpattern`][3]
- [`utf8.codepoint`][4]
- [`utf8.codes`][5]
- [`utf8.len`][6]
- [`utf8.offset`][7]


  [1]: https://www.lua.org/manual/5.3/manual.html#6.5
  [2]: https://www.lua.org/manual/5.3/manual.html#pdf-utf8.char
  [3]: https://www.lua.org/manual/5.3/manual.html#pdf-utf8.charpattern
  [4]: https://www.lua.org/manual/5.3/manual.html#pdf-utf8.codepoint
  [5]: https://www.lua.org/manual/5.3/manual.html#pdf-utf8.codes
  [6]: https://www.lua.org/manual/5.3/manual.html#pdf-utf8.len
  [7]: https://www.lua.org/manual/5.3/manual.html#pdf-utf8.offset