Fix parsing of filenames with colons

Fixes #872
Merge pull request #877 from shoyer/fix-file-schemes

Fix parsing of filenames with colons