str: fix tests on unsigned chars, and !HAVE_ISBLANK.