[developer] Workaround for use-after-free in Delphi string management causing EInvalidPointer exceptions