Move UTF16_IS_SURROGATE to regenc.h

Also remove duplicated definitions.