[skip ci]
This fixes handling of non-UTF8 TTML subtitles Closes #14191
Iterate over opts instead of PRIVATE_OPTS for both performance and correctness