Make values little-endian on write