title: Wireshark Lua dissector utf16 string
body: <p>I am writing a custom Wireshark Lua dissector. One field in the dissector is a UTF16 string. I tried to specify this field with</p>
  
  <pre class="lang-lua prettyprint-override"><code>msg_f = ProtoField.string("mydissector.msg", "msg", base.UNICODE)
  local getMsg = buffer(13) -- starting on byte 13
  subtree:add_le(m.msg_f, getMsg)
  </code></pre>
  
  <p>However, this only adds the first character rather than the whole string. It also raises an Expert Info warning undecoded trailing/stray characters.</p>
  
  <p>What is the correct way to parse a UTF16 string?</p>