sanitize all IDs