Fix file URL parsing