As of MySQL 8.0.28, there is no longer charset utf8, which was an alias for utf8mb3.
It is show as utf8mb3 so we need to check for both utf8 for older versions and utf8mb3 to cover newer versions.
See https://dev.mysql.com/doc/refman/8.0/en/charset-unicode-utf8.html
[MAILPOET-5888]