redone: parse character sets correctly