Simpler base encoding checks