encode all reasons with base64 encoding