title: Converting between strings and ArrayBuffers
body: <p>Is there a commonly accepted technique for efficiently converting JavaScript strings to <a href="https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer">ArrayBuffers</a> and vice-versa? Specifically, I'd like to be able to write the contents of an ArrayBuffer to <code>localStorage</code> and to read it back.</p>