some fixes (CSV formatting, UTF-8 handling)