[mysql] How to fix "Incorrect string value" errors?