proper handling of the file ID (slug)