Andrej Mitrovic Sun, 08 May 2011 19:13:59 -0700
I guess this should do it:
const(wchar)* toUTF16z(in dchar[] s) { return (toUTF16(s) ~ "\000").ptr; }