Strip filename before hashing it