more careful handling of spaces

fixes one-more-minute/Jewel#42