take

Counts and indexes refer to UTF-16 code units, including individual surrogate halves.