Make a hash of the filename