title: Issue with Base64 encoding/decoding: decoded string is '?'
body: <p>I am trying to read an image and use Base64 encoding to convert it into byte array and then to string to send it over network. The problem is that when I try to decode the Base64 encoded string, I am getting incorrect data. </p>
  
  <p>For eg. I am facing issue with below special character.</p>
  
  <p>I am using following code for encoding:</p>
  
  <pre><code>byte[] b = Base64.encodeBase64(IOUtils.toByteArray(loInputStream));
  String ab = new String(b);
  </code></pre>
  
  <p><code>IOUtils</code> is <code>org.apache.commons.io.IOUtils</code>.</p>
  
  <p>and loInput</p>
  
  <p>Code for decoding:</p>
  
  <pre><code>byte[] c = Base64.decodeBase64(ab.getBytes());
  String ca = new String(c);
  System.out.println(ca);
  </code></pre>
  
  <p>It prints <code>?</code> for decoded String.</p>
  
  <p>Can anyone please let me know the issue.</p>