Made sure the temp strings have a terminating byte