Create decoding.py

to deal with utf-8 coding recognition