auto-rename filenames to replace spaces with underscores