gui: Fix some python2/3 incompatibilities
Fix some unicode encode/decode errors in PY2
Remade test_config_manager again