Add encoding.py module

* Add helpers to decode/encode using UTF-8.
* Update pub_support.py and dartlint.py to use new helpers.