Handle spaces in paths