osx writer: switch to little endian