title: Found reliance on default encoding
body: <p>I am getting below bug from FindBugs,</p>
  
  <p>Found reliance on default encoding in MyClass.print(String): String.getBytes()</p>
  
  <p><strong>Method</strong></p>
  
  <pre><code>protected void print (String str) {
  {
  private OutputStream outStream = null;
  .....
  outStream.write(str.getBytes());
  .......
  }
  </code></pre>
  
  <p>Please let me know what is the error? how we can resolve this?</p>
  
  <p>Thanks in advance</p>