properly escape paths
Merge pull request #28 from tsloughter/paths

properly escape paths