unai: Add support for big-endian