[Bug 37635] Explicit environment variables passed to spawn/exec are corrupted