fixed text selection to react (better) with unicode input