Ensure that error case of mbstowcs is handled properly