https://www.codeproject.com/articles/157001/full-getopt-port-for-unicode-and-multibyte-microso