Fix compile errors and warnings.
Merge topic 'unicode-main' into next

6cce3d6 Fix compile errors and warnings.
Use Encoding::CommandLineArguments for main() functions.
Merge topic 'unicode-main' into next

a1e542f Use Encoding::CommandLineArguments for main() functions.