(in progress) some rewrite to conform to the original text spec

# (in progress) use class members to store permutation seq instead of
local variable
# (yet) use charsetsiz member variable to determine the char size.
important to make the class work for QChar!