An improved clean_fname() routine that is more efficient and will also