Encode conf file to utf-8 for Python 3.