text: Title: [BUG] Video generation fails when creating subtitles locally.
  Body: **Describe the bug**
  Video generation fails after MoviePy finishes. The next debug message is "Creating Subtitles Locally" and then comes an error:  "Expected contiguous start of match or end of input at char 198, but started at char 483 (unmatched content: '2\n0:00:10,780 --> 0:00\nIn this video, we will explore the fascinating world of cars, from their history and evolution to their impact on society and the environment.\n\n1\n\n3\n0:00 --> 0:00:25,760\nEvolution of Cars:\n\nCars have come a long way since their invention in the late 19th century')"
  
  The request returns an error and no output.mp4 is generated
  
  **To Reproduce**
  Steps to reproduce the behavior:
  1. Cloned git repository
  2. Built MagickImage from linux source and installed on Ubuntu 22.04
  3. Updated .env file per ENV.md. ImageMagick is pointed to /usr/bin/local/magick where it was installed by make install
  4. Run main.py for the backend as suggested
  5. Send a JSON request to the backend endpoint from Postman on a remote machine: 
  
  {
      "videoSubject": "Cars",
      "voice": "en_au_001"
  }
  
  **Expected behavior**
  Video to be generated at ./temp/output.mp4
  
  **Observed behavior**
  The video clips are downloaded and audio is generated into ./temp/, but the request errors and stops before the video is composited.
  