Modified conversion of wide-char to unicode to use correct length, fixin...

This PR fixes #21.

Modified conversion of wide-char to unicode to use correct length, fixing a bug that was causing null characters to be included in the returned string which was then causing inconsistent equality comparisons down the line.

Please see #21 for more details.