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

Closes #3.