Error encoding is mixed/binary if MySQL < 5.5 and connection encoding if MySQL >= 5.5
Rewrite the error encoding specs