Produce correct errors for UTF-16 surrogate pairs.