Converts the Windows API string str to a newly-allocated D UTF-8 string.
See Implementation
Moved from simpledisplay.d to core.d in March 2023 (dub v11.0).
Converts the Windows API string str to a newly-allocated D UTF-8 string.