@airpingu : Could you please move encoder outside the SMIL_generateSlides function? There is no need to create encoder every time. Adding some comment to describe why we need the UTF-8 encoder here would be great.