code: function _bufferToString(buffer) {
          var str = '';
          var uint16Array = new Uint16Array(buffer);
  
          try {
              str = String.fromCharCode.apply(null, uint16Array);
          } catch (e) {
              // This is a fallback implementation in case the first one does
              // not work. This is required to get the phantomjs passing...
              for (var i = 0; i < uint16Array.length; i++) {
                  str += String.fromCharCode(uint16Array[i]);
              }
          }
  
          return str;
      }
docs: Converts a buffer to a string to store, serialized, in the backend storage library.