This is not very robust. What if appconfig table already is utf8_bin, but everything else is not?