Attempt to fix html5lib-1.0b error with unicode encoding.