Guard against GC happening while string potentailly holds non-gc value.