Fix #10162: assumeUTF from idea

converts ubyte to char, ushort to wchar and uint to dchar

Fix #10162

https://issues.dlang.org/show_bug.cgi?id=10162