Update to mispaired surrogate test.

The mispaired surrogate test used to convert code points to code units directly, since that's usually valid in UTF-16. However, this won't work for encodings that take endianness into acount where the endianness is different from the host order. The test now encodes the code points properly.
Cleanup and doc pass.