implemented invalid character MP_ERROR