Fix edi.inc encoding and correct uninitialized variables in modified files