Update encoding.py

Have to replace tabs with spaces probably