Updated duration parser to reencode the ffmpeg input in the event the UTF-8 data isn't valid.