Resolved an issue where SCORM 2004 4th Edition packages failed to upload on some LMS platforms due to an invalid XML declaration in the manifest file. The XML declaration must be the first line of the file, and a misplaced comment was causing parsing errors. Additionally, added sanitization to remove UTF-8 BOM and any content before the XML declaration for broader LMS compatibility.