correct word spacing

Certain char streams may contain 0x20 which can be mapped to non space character. Word spacing in those cases are ignored. Fix for #3205