Deal with ' characters in marker names properly.