Optimizing xmlfsm

* in hopes that memchr may be implemented via asm REPNE or similar
merging external commit