This module helps me with UTF8 wordwrap. I rewrite the ValidateUnicodeString from lua-user.org/wiki/SampleCode in lua.