Making sure `wcstombs` is called with the right number of bytes