Detect if the subtitles file is a valid UTF-8 file (fixes #238)