Fixed unsafe string length handling for Memory => String gate