Fix htmlentites charset issue with PHP 5.4.0+

Default htmlentities charset changed from ISO-8859-1 to UTF-8 in PHP
5.4.0, resulting in non-display of Headers in details page