Fix html_entity_decode encoding on PHP versions <5.4.0

The default encoding used by html_entity_decode in PHP versions prior
to 5.4.0 is ISO-8859-1 but we want UTF-8.