Apply htmlentities() to $value before adding to header