Adding base64 encoding to the output and input.