Minor cleanup to avoid using MCresult directly
Expose some UTF-16 utility functions
Fix paragraphs calculating surrogate pair codepoints incorrectly