Move to here from utf16-ucs4-safe.c.