Handle spaces and quotes in file names in MRI scripts.