Allow spaces and quotes inside file paths

Escapes characters with special meaning in the shell.