Fix for message.data check on Mac. It wasn't determining the message to be 'down' or 'up', apparently due to the data being binary rather than a string...