Update encoding.py

Little bugfix
Update file.py

Fixed typo
Merge pull request #3 from wmiltenburg/master

fixes typo in variable name and in call to function count