fix stripping for wrapped text

Fix #2503 by making text stripping skip unicode NO-BREAK SPACE characters (`\u00a0`) and automatically strip all text. If the text string contains leading and/or trailing spaces and the `strip` option is not enabled, those leading/trailing spaces are replaced with `\u00a0` to prevent stripping.