This function can be used to encode arbitrary data into the Base64 format or decode a
Base64 formatted string back into its original binary data. The second argument specifies
whether this function should encode or decode the data.
Inputs
s$
data to encode or decode
decode
True to decode Base64 data, False to encode the specified data into Base64