fix erroneous stop before input limit in mbsnrtowcs and wcsnrtombs