Revert "removed the 'file' prefix and URI.parse call"

This reverts commit 036190a0bcaef9e0f203055ff9eae013d0f09369.