refs #5226; + utf8_encode() and htmlentities()