Fix small .srt parsing bug; add a test.