keysym: properly handle overflow in 0x keysym names