Simplify `regexInvalidRawCodePoint`

By using a lookahead the regular expression to match lone surrogates gets a bit more compact.

This also fixes an encoding issue caused by a typo that was introduced in fe39c83f9c14971a59d0f485eef304078c818548.