Make SrtFile.encoding be set when autodetecting encoding