Added base64 encoding/decoding.