Underline feature, and crash fix

The crash fix was such a long time ago that I can't remember exactly how to reproduce, but it was related to a crash coming from something like setting the text to "#" or "##" or perhaps "Test#".