Supporting non-default character sets.
Further work on character sets.