Encodes and decodes in big and little endian formats to and from CSV