title: How to replace/remove a character in a character buffer?
body: <p>I am trying to modify someone's code which uses this line:</p>
  
  <pre><code>out.write(&amp;vecBuffer[0], x.length());
  </code></pre>
  
  <p>However, I want to modify the buffer beforehand so it removes any bad characters I don't want to be output. For example if the buffer is "Test%string" and I want to get rid of %, I want to change the buffer to "Test string" or "Teststring" whichever is easier.</p>