If the defendant alleges that he is not indicted by his true name, and refuses to say what his real name is, the cause shall proceed as if the name stated in the indictment were true; and the defendant shall not be allowed to contradict the same by way of defense.