fix path encoding problems; closes #30