title: UNICODE_STRING to wchar_t* null terminated
body: <p>I want to use the buffer from a <code>UNICODE_STRING</code>, but it seems I cannot just directly use it, by copying reference, because sometime I can see that there are null bytes in the middle of a string, and <code>Length</code> is greater than what I see in the debugger. So if I do this</p>
  
  <pre><code>UNICODE_STRING testStr;
  //after being used by some function it has data like this 'bad丣\0more_stuff\0'
  
  wchar_t * wStr = testStr.Buffer;
  </code></pre>
  
  <p>I will end up with <code>wStr = "bad丣";</code>
  Is there a way to convert this to the null terminated, valid <code>wchar_t*</code>?</p>