If upon the examination it shall appear to the magistrate that the accused has committed an offense of a higher grade than that charged, he may be held to answer therefor.