Fixed error in publish code

Was adding an incorrect '\0' to the topic that was seen to cause
problems