support 32-bit runes by using Runemax not 0xffff.