Fixed opening of files with non-ANSI paths.