Convert nio to ByteVector