When a defendant is charged by a fictitious or erroneous name, and in any stage of the proceedings his true name is discovered, it must be inserted in the subsequent proceedings, referring to the fact of his being charged by the name mentioned in the accusatory pleading.