Set character set and locales.