Changed type of payload of TextMessage from str to unicode