Need by Stardust Skate (through "R66" Twitter integration plugin).
It looks like char16_t conversions are locale agnostic and purely convert between utf8 and utf16 (with some relaxed validation).
The last patch is not related, just looks like an obvious bug in wchar conversion implementation I spotted while working with the code.