Set the collation of existing database tables to mysql_bin for mysql

This adds an additional step to the upgrade progress checking the current collation of tables for mysql databases and setting them to `utf8_bin` from their default `utf8_unicode_ci`.

This fixes string operations being case insensitive, see #6850 

Naturally this needs testing in as many different installations as possible, the collation conversion itself should be fully safe since it converts from a lose collation to a collation with more strict comparisons

cc @karlitschek @DeepDiver1975 @PVince81