Fix auto-loading subtitles for video filenames containing special characters.

After 8c16873c8e6af244bed48e0ca446ec51e033c01f, auto-loading subtitles could fail or give wrong results for video filenames containing the following characters: !-.^+{}[]()$.

This commit fixes #3433.