fix a string type bug in confparse.py, which would result into error for unicode