Cleans up file names based on metadata