Converts config to YAML.