Add an as_uri method

This patch adds an `as_uri` method that returns a `URI::file` object, along with some rudimentary tests.

It does not support file URIs for other operating systems (such as Windows).