escape file paths when paths contain spaces