replace periods with underscores in filenames