[RFC] Adding a CharSet Converter to the LLVM Support Library

My primary concern with that approach is how compatible the results are across libraries. e.g., it would be really bad if the same input text and same target encoding produced different results depending on what platform the host compiler was on. However, I’m not certain how likely such an outcome is.

But in general, it’s not a problem using different libraries on different platforms. We have a reasonable number of APIs in llvm/Support that have a UNIX branch and a Windows branch that use different implementation strategies for platform-specific needs. Text encoding isn’t quite as platform-specific as threads or file system support, but it is tied somewhat to the platform in terms of what library offerings are available.