Although we probably have numerous endian defects elsewhere, let's make use of HOST_TO_x() macros here.