add null byte at the end of message