[MAGEMEP-121] Improve DerModPro compatibility and encoding