title: Splitting a multibyte string in Lua
body: <p>I have a multibyte string in Lua.</p>
  
  <pre><code>local s = "あいうえお"
  </code></pre>
  
  <p>How do I take the string and split it into a table of strings?</p>
  
  <p>In English texts, then I can use this code. But this does not work with the multibyte.</p>
  
  <pre><code>local s = "foo bar 123"
  local words = {}
  for word in s:gmatch("%w+") do
      table.insert( words, word )
  end
  </code></pre>