Encoding should be checked for utf8mb4
Collation is correctly tested, but encoding isn't. Just in case, this is what I originally wrote for this:
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20080
It might be wrong but I think is worth mentioning.