Encode API key authentication header (base64)