Fixed a bug where a string was being used in one thread after it had been destroyed in another.