replace isspace with locale-insensitive version

Config files should parse the same regardless of locale.

Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com>