customized encode_SAMLResponse file for PingIdentity