fix FS#1064 - Text editor: handling of non-breaking space (\~, &nbsp;)