Hash filenames so they are not too long.