Sanitise ids