added binary encoding and decoding for multiple macaroons