Issue #100: trailing gt and lt cause crashes in tokenization