title: Unexpected output when encoding
body: <p>I am sending JSON string for decoding.</p>
  <pre><code>{
     &quot;messageContent&quot; : &quot;My Message&quot;,
     &quot;poolId&quot; : 1,
     &quot;poolManagerId&quot; : 1
  }
  </code></pre>
  <p>Here is my complete code to upload object(this Json) in S3.</p>
  <pre><code>public void upload(String messageContent) throws IOException {
        byte[] decodedBytes = Base64.getMimeDecoder().decode(messageContent)
        InputStream fileInputStream = new ByteArrayInputStream(decodedBytes);
        ObjectMetadata metadata = new ObjectMetadata();
        metadata.setContentType(CONTENT_TYPE);
        PutObjectRequest putObjectRequest = new PutObjectRequest(S3_BUCKET_NAME, S3_KEY_NAME, fileInputStream, metadata);
        amazonS3.putObject(putObjectRequest);}
  </code></pre>
  <p>But on encoding, I am getting <code>messageContentMyMessagepoolId1poolManagerId1</code></p>
  <p>Where am I doing wrong?</p>
  <p>This is my complete code to download the object.</p>
  <pre><code>public String download(){
      S3Object s3Object = amazonS3.getObject(S3_BUCKET_NAME, S3_KEY_NAME);
      S3ObjectInputStream inputStream = s3Object.getObjectContent();
      byte[] content = IOUtils.toByteArray(inputStream);
      byte[] encodedBytes = Base64.getMimeEncoder().encode(content);
      return new String(encodedBytes) ;
  }
  </code></pre>