BAMPFA-75: Fix error when initializing vocabularies with terms containing apostrophes.