Quote invalid YAML strings