Tools for CSV splitting and encoding