add support for file:// URIs

This patch explicitly requires the "file://" prefix.  I think we probably want to add one that just accepts plain, unprefixed file names too.