More accurite error messages when writing beyond the length of a Buffer.
More accurite error messages when writing beyond the length of a Buffer.

Fixes #1336.

dreamllq/node,dreamllq/node,dreamllq/node,dreamllq/node,dreamllq/node,dreamllq/node,dreamllq/node,dreamllq/node,dreamllq/node