allow regex-unsafe characters in file path

This should fix #32 on windows, though there is no exact test for it...

Should we do platform-specific tests?