sanitize file