Prevent error witth mysql when encoding is utf8mb4

This prevents error 1071 Specified key was too long; max key length is 767 bytes