escape spaces in directory and file names