[IOT-1204] Add zero terminator before logging