Add support for multi-byte character sets.
Obtained from: Mitsuru Chinen (IBM) via The Fedora Project