UI:  Fix string conversion bug

Parameter two of os_wcs_to_utf8 is how many characters to convert, not
how big the buffer is.