node: be compatible with NetBSD

isspace() is implemented as an array lookup, so the argument
has to be like an index, in the "unsigned char" range.

Then, the API says it takes an int, so one has to recast it to
int afterwards.