[ ENGINE-315 ] Helper to encode base64 data in wrappers