Fix bug #13262 with crashes in completion on MS-Windows with non-ASCII filenames.