Add encoding for subtitle preview