anchor.diff:    }
   
     Uri _ensureFolderPath(String path) {
  -    // This is a URI, not a file path, so the forward slash is correct even
  -    // on Windows.
  -    if (!path.endsWith('/')) {
  -      path = '$path/';
  +    String uriPath = new Uri.file(path).toString();
  +    if (!uriPath.endsWith('/')) {
  +      uriPath = '$uriPath/';
       }
  -    return Uri.base.resolve(path);
  +    return Uri.base.resolve(uriPath);
     }
   
     /// Runs the given function [f] in a Zone that redirects all prints into
  
positive.code:   BinaryPrinterFactory printerFactory;
  
    IncrementalKernelGenerator _generator;
    String _filename;
    String _kernelBinaryFilename;
  
    @override
  
negative.code:           sdkRoot.resolve('platform.dill')
          ];
        }
        program = await _runWithPrintRedirection(() =>
            compileToKernel(filenameUri, compilerOptions, aot: options['aot']));
      }
      if (program != null) {
        final IOSink sink = new File(_kernelBinaryFilename).openWrite();
  