Make sure the target buffer is null terminated so we don't blow up