Before accepting a plea to an offense charged, the court shall in all cases, in language which the defendant can understand, inform the defendant of the nature of the charge and the penalty which may be imposed upon conviction.