remove Buffer.toString dependence on ByteBuffer.array()