title: qt base64 encode/decode adds escape characters
body: <p>I have a method that returns an <code>unsigned char *</code> array and I am trying to encode this as base64 and decode it later. So what I am doing is as follows:</p>
  
  <pre><code>unsigned char * val = myMethod();
  char * encodedMsg = reinterpret_cast&lt;char *&gt;(val);
  std::cout &lt;&lt; "Returned message: " &lt;&lt; val &lt;&lt; std::endl;
  QByteArray raw = QByteArray(encodedMsg).toBase64(QByteArray::Base64Encoding | QByteArray::OmitTrailingEquals);
  </code></pre>
  
  <p>The output from the method is <code>\u0001z\ri!i,</code> and the encoded value is <code>XHUwMDAxelxyaSFpLA</code>.</p>
  
  <p>Now, I decode it as follows:</p>
  
  <pre><code>QByteArray decoded = QByteArray::fromBase64(raw,
                              QByteArray::Base64Encoding | QByteArray::OmitTrailingEquals);
  
  qDebug() &lt;&lt; decoded;
  </code></pre>
  
  <p>Now this returns <code>\\u0001z\\ri!i,</code>. Notice that the slashes have been escaped. </p>
  
  <p>I know I can replace this as a post processing step but is there a way to avoid this. Perhaps I am using the encoding/decoding incorrectly?</p>