Improved literal quoting for xpath