Fix warnings xgettext gives in html5lib.

This is relatively trivially resolved by changing the bare `%s`,
`%r`, etc. into named substitutions.