Fix warnings xgettext gives in html5lib.

This fixes #76. This is the original patch from Google Code, with very slight Py2/3 changes.