title: std::vector<char> to std::string
body: <p>I am trying to convert a <code>std::vector&lt;char&gt;</code> into a string using:</p>
  
  <pre><code>//  Data has been received, update the buffer...
  buffer = readBuffer.data();
  buffer[bytesRead-1] = '\0';
  </code></pre>
  
  <p>The issue I am having is that when I debug readBuffer I get <code>"&lt;A HREF="https://www.google.com/"&gt;here&lt;/A&gt;."</code> </p>
  
  <p>but on reviewing buffer I get <code>'&lt;A HREF="https://ww ²²²²▌▌╫$Ö►¬∟☺.google.com/"&gt;here&lt;/A&gt;.'</code></p>
  
  <p>Is there something really obvious I missing?  </p>