C-safety: a framework for the anonymization of semantic trajectories