Fixed encoding of html entities