Handle apostrophes in xpath