serialization of byte arrays as base64 strings