Improved support for local files as URL