CSPACE-6379: Fix error when vocabulary terms contain apostrophes.