add null terminator to text events