Removing bold/italics formatting while highlighting * results in wrong post-format-removal text highlighting

It seems to specifically deselect the left 2 and right two chars, for example:

**strong**

Deselects the st. Re-bolding and then selecting all again, then de-bolding takes off the right two chars incorrectly.

st**rong**

Which becomes

**rong