switch to table lookup for identifier chars

Faster than sequence of compare-branches.