strtosz(): use unsigned char and switch to qemu_isspace()