Cleanup: use std::vector and extract utf8_to_utf16().