Copy the vsnprintfW implementation from libunicode.so to msvcrt and add a handler for the %S flag. That requires a conversion to unicode and knowledge of the current ASCII code page.