Get away from working on C strings in these functions.  Fixes a segfault on Linux with Ruby FFI.
Get away from working on C strings in these functions.  Fixes a segfault on Linux with Ruby FFI.

thomasluce/YAPWTP,thomasluce/YAPWTP