D-Programming-Language/phobos — pull request #494 by jmdavis (2012-03-14 07:34:58+00:00)
Title: Changed toUTF16z to use toUTFz

I changed `toUTF16z` to use `toUTFz` (which not only cuts down on duplicate code but allows `toUTFz` to work with all string types). Also, at Andrej Mitrovic's request, I changed `toUTFz` to use an outer template so that aliases can be made with a single template argument rather than two. The change shouldn't break any code though, since I created both a single argument and a two argument version.