[OE-3572] Fixing htmlentities handling of UTF-8