Added issurrogate() macro.
Need to check for Unicode surrogates, which cannot be converted to UTF8.

Otherwise utf8_idpb() returns NULL and crash occurs.
Merge pull request #1407 from blipvert/fixes/40

Fixed crashes caused by failure to handle Unicode surrogates when converting to UTF