Name is confusing, `serializeEnv` would make a lot more sense.