isspace() to iswspace() for better UTF-8 support