Normalize error messages