Add base 64 encoding and decoding