title: Mongo Insert Error - InvalidDocument - Key names must not contain the NULL byte
body: <p>When attempting to insert the following JSON document:</p>
  
  <pre><code>{
    "Cmd": "Sync",
    "DeviceId": "ApplF4KLR7XXXXXX",
    "DeviceType": "iPad",
    "User": "jackXXXXX",
    "\u0003\u0001j\u0000E\\OK\u00031102699800\u0000\u0001R\u000326\u0000\u0001S\u00030\u0000\u0001WX\u00033\u0000\u0001b\u00032\u0000\u0001\u0000\u0011EF\u00034\u0000\u0001G\u000332768\u0000\u0001\u0001\u0001\u0000\u0000VJM\u000326:4909\u0000\u0001\u0001\u0001\u0001\u0001\u0001": true
  }
  </code></pre>
  
  <p>into a mongo collection - I get the error " InvalidDocument - Key names must not contain the NULL byte".</p>
  
  <p>The structure is representing a log line generated while logging MS ActiveSync POST requests towards OWA server.</p>
  
  <p>Question is: What is the safest way to escape this special char and yet keep the new structure  / value as close as possible to the original.</p>