#793, #798: Reduce code size for the Chinese ID validator, thanks to @shamiao