fix xpath escaping for pgsql