Fixes deleting formatted text leaves formatting in place
Fixes state-override may insert non-text characters