Fix xpath quote escape bug