Fix UnicodeEncodeError when scanning subtitles

Fix the issuse that failed to load subtitle if the file path contain
non-ascii character