fix bug for mysql on utf-8

Specified key was too long; max key length is 1000 bytes