Change use of .ptr to toStringz.