Add optional extended attributes to encodeSAMLResponse