cli: Add support for Unicode and long paths on Windows 10
Tested on Windows 10 2004. If I'm interpreting the documentation on MSDN correctly it shouldn't affect behavior on older Windows versions but I don't have any such systems to test it on. If anyone happens to have a Windows 7 or 8 box available it'd be nice if you could give it a go.