Let the parser handle deserializing html entities
Fix encoding test to reflect browser behaviour

Tested with Chrome.