fix problems when service definition names contain chars that need to be latex escaped