Implement wide->UTF-8 string conversion more correctly
4 files changed