Fix and improve manager/includes/utf8.sanitise.php