Bytestype to bytebuffer

For Hyena, we need to be able to use `BytesType.decodeBytes` but without having to get a Ruby runtime.