I'll grant you that the old code here was terrible :)

However I think: if (ch < 0x20) would be better still.