Fix &apos; encoding in error messages
Fix https://mantis.culture.fr/mantis/view.php?id=18304