Escape name fragment on contact filtering