Fix file to URL resolution when file name contains special chars.