Renamed convert_to_csv to convert and made it more flexible. Will work with pretty much any delimiter.