Fixed error in publish code

Was adding an incorrect '\0' to the topic that was seen to cause
problems
Merge pull request #2 from nscooling/master

Fixed '\0' error