Modified NSString.AsStringMarshaler to generate less garbage during
marshaling. (#427)