c++ification and hopefully proper handling of unicode command lines