CLI parser modified to hande utf8 encoding instead of ascii

- Tested on Mac 10.6.8
- handles correctly encoding UTF-8 instead of ASCII, which IMO should be avoided as UTF8 is more common nowadays and more safe.