use base64 for binary encoding