Fix handling of command line args on Win32.

We previously didn't handle encoding of them correctly. This improves
things sufficiently that one of the two failing tests in dash-e.t now
passes.