create widen and narrow helpers to deal with paths on win32