title: Get MQ messageId in string format
body: <p>I'm using the mq library of IBM to read messages from MQ queues. Now I need to retrieve the messageid of the message. I now it is in the message header under the name messageId. But this returns a byte[]. Now I need to change it to a readable string.</p>
  
  <p>How can I transform the messageId from byte[] to string?</p>
  
  <p>I tried a couple of conversions but non of them works:</p>
  
  <pre><code>new String(theMessage.messageId)
  new String(theMessage.messageId, "UTF-8")
  new String(theMessage.messageId, "UTF-16")
  theMessage.messageId.toString()
  </code></pre>