Don’t move unmatched high surrogates to the end of the regex if it’s notneeded (i.e. if no astral symbols are involved)

Closes #3.