Convert AllLegalTagNameCharacters flag into an integer CurrentState and use a table (finite automaton) of size 18x41 to transition between states that either accept or reject the symbol as a tag name. Also update comment about tag names.
Convert AllLegalTagNameCharacters flag into an integer CurrentState and use a table (finite automaton) of size 18x41 to transition between states that either accept or reject the symbol as a tag name. Also update comment about tag names.

PenguinF/sandra-three