Upgrade encoding.js to v1.0.7

https://github.com/polygonplanet/encoding.js
Merge branch 'refs/heads/encoding' into dev