Consolidating regex for special chars in filenames. Converting for to map