Add support for .txt subtitles

Fixes #1894