Update mqtt.c

changed to avoid sent \u0000 on publish payload