Attempt to fix character set errors.