handle spaces in filepaths

Thanks for reporting, Robin Munn.

Closes #8.