Encode html value for APPMNG (closes #3980)