Only convert encoding when formatting for csv