fix ISBLANK() for Visual Studio < 2013

Visual Studio versions older than 2013 lack C99's `isblank()`. Since only ASCII characters are passed to it, implement it directly without calling the locale-specific `isblank()`.

(Really) fixes #2658:
>Another problem is that the compiler didn't find "isblank".