Error encoding should be BINARY if MySQL < 5.5 or UTF-8 if MySQL >= 5.5