includes/corefunctions.php: Add utf8 shims from eFiction 3.5.72 - solves future PHP 9 deprecation and removal
includes/corefunctions.php: Add utf8 shims from eFiction 3.5.72 - solves future PHP 9 deprecation and removal

--- a/includes/corefunctions.php
+++ b/includes/corefunctions.php
@@ -594,3 +594,9 @@
 	return $string;
 }
 
+// ---- Modernization shims (PHP 8.x) ------------------------------------
+// utf8_encode()/utf8_decode() are deprecated as of PHP 8.2 and removed in PHP 9.
+if(!function_exists('utf8_encode')) { function utf8_encode($s) { return iconv('ISO-8859-1', 'UTF-8', $s); } }
+if(!function_exists('utf8_decode')) { function utf8_decode($s) { return iconv('UTF-8', 'ISO-8859-1', $s); } }
+?>
+