Base64 Encoder and Decoder shims for client-side.