Fix parsing of filenames with colons

Fixes #872

And yes, I know I need to sign the CLA before this can be merged :).