charset: Added a sanity check

All the charset strings must have the same length.

Signed-off-by: Celelibi <celelibi@gmail.com>
charset: simplified cs_equiv

Some variables were not used at all.

Signed-off-by: Celelibi <celelibi@gmail.com>