Update encoding.py

Since it is now a function, we must call it.