encode xml element attributes for logout request and responses