sanitize file ids for slicing