Ruby bindings didn't NULL-terminate an array, resulting in segfault.