Bug 1073275: Use Uint8Array.prototype.set instead of Uint8Array.set for buffer.copy and buffer.write.