Using iswspace and iswprint to allow multi-byte characters