Convert Node.js Buffer objects to/from ArrayBuffers