fix character encoding settings
improve folding configuration.