Compact multiple adjacent spaces to a single space for consistency in character counting among browsers. Fixes #81