Encode file_id as UTF-8 before hashing.