Fixed a bug with encoding in export with all fields action