Convert config to YAML file