Make html parsing python 3 compatible.

htmlentitydefs was renamed to html.entities.
HTMLParser was renamed to html.parser.
utf_decode output bytes of git command.

python 3 fix.
Default tests to unicode literals.

Use b'' in tests that should be bytes.
utf8_encode info name in info_get().
Stricter character encoding.

Preparation for python 3.