Fixed filename encoding issues with UNC paths.