Just some testing to encode arraybuffers. Needs fixing and generalization to other binary stuff