Fix non-ASCII paths in the disk writer on Windows (#2440).