Escape quotes within sql tags for xpath compat