add utf-8 support in fkr.py bg.py