a function to change filenames to lowercase