s it was for the public benefit that the said matters charged should be published; and to entitle the defendant to give evidence of the truth of such matters charged as a defence to such indictment or information it shall be necessary for the defendant, in pleading to the said indictment or information, to allege the truth of the said matters charged in the manner now required in pleading a justif