Cannot package project. "Hexadecimal value 0x00. is an invalid character. Line 1. position 1."

All editors that use Visual Studio 2017 suddently stopped packaging, and all have the same error:

UATHelper: Packaging (Windows (64-bit)): XmlConfigFile.TryRead: ERROR: ‘.’, hexadecimal value 0x00, is an invalid character. Line 1, position 1.
UATHelper: Packaging (Windows (64-bit)): Automation.Process: Failed to initialize UBT
UATHelper: Packaging (Windows (64-bit)): Program.Main: AutomationTool exiting with ExitCode=1 (Error_Unknown)
UATHelper: Packaging (Windows (64-bit)): BUILD FAILED
PackagingResults:Error: Error Unknown Error

I have checked the Visual Studio Install requirements; reinstalled VS, reinstalled Unreal 4. Got sick of it not working and ended up wiping my entire PC, reinstalled windows 10, carefully reinstalled VS2017 and Ue4, and ITS STILL NOT WORKING!!!

After 4 days of bug testing, and 4 reinstalls of windows, I found out that the cause was this file:
My Documents\Unreal Engine\UnrealBuildTool\BuildConfiguration.xml

Deleting it was the solution.

I can confirm this worked. Thank Davis3D