Update encoding.py

Fixed a little