Change command line processing API to use wchar_t.
Fixes #2128.
21 files changed