Use marshaled data instead of unsafe, bandaid for Mono crash.