As luck has it MySQL behaves sanely here and uses the connection encoding for errors