title: Convert escaped unicode string to bytearray
body: <p>My input string consists of a mixture of unicode escape characters with regular characters mixed in. Example:</p>
  
  <pre><code>String input ="\u0000\u0003\u0000\u0013timestamp\u0011clientId\u0015timeToLive\u0017destination\u000fheaders\tbody\u0013messageId\u0001\u0006"
  </code></pre>
  
  <p>How can I convert this into a bytearray or Stream?</p>
  
  <p>Expected output is Byte[]</p>
  
  <pre><code>//                         t     i     m     e     s     t     a     m     p
  {0x00, 0x03, 0x00, 0x13, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x11, ...}
  </code></pre>