utf8_encode/utf8_decode Replacement: Modern PHP Encoding Alternatives

You upgrade to PHP 8.2, run your test suite, and the logs fill up with deprecation notices pointing at utf8_encode() and