fix handling of non-breaking space