Fix for browsers that do not support ArrayBuffer.prototype.slice.