Use canonical path instead of absolute path to get a file's URI.