title: Java String.getBytes() issue
body: <p>I have an array of bytes. Irrelevant: I use the iText library and somehow parsing fails when trying to extract text from that array. I have traced the problem to be related to a corrupt PDF document (the bytes). So, I would like to edit the array of bytes before feeding it to the library.</p>
  
  <pre><code>byte[] bytesArray;
  String x = new String(bytesArray);
  x = x.replace("foo", "bar");
  library.parse(x.getBytes());
  </code></pre>
  
  <p>How is this different from the following? </p>
  
  <pre><code>library.parse(bytesArray);
  </code></pre>
  
  <p>Thanks.</p>