ensure buffers are passed to fromBytes