Handle spaces in paths correctly.