better yaml to csv conversion, replace string values