fix off-by-one error in std.unicode.utf8ToUtf16LeWithNull

and fix larger-than-one-byte sentinels when being freed

Thank you to João Pedro for identifying both problems and
providing example code to solve them.

closes #4413
3b622f4494Andrew Kelley committed on 2/9/2020, 7:56:19 PMparentc4d0f97
2 files changedLine totals unavailable