fix YAML generation to not include newline codes