convert string into a valid file name