Open filenames using wide functions on win32

Needed to handle filenames with non-ASCII in them properly.

-[Unknown]