ensure timestamp is null terminated