Fix 'invalid byte sequence in UTF-8' problem at job result writing to CSV