Proper handling of reference definition values with apostrophes in them.