Correctly strip original extension from both .mkv and .ts files.