Fix "ends-with" query syntax to conform with xPath definition