Change stage file serialization (use pretty format)