Add support for unicode config file

Main changes:
* Fix wxversion selection.
* Add support for unicode config file.