Make sure that mrb_string_value_ptr() returns a null-terminated string.

This fixes the following unexpected behavior.

~~~
$ mirb
> ENV["PATH"]
 => "C:\Program Files ....
> ENV["PATH************************"[0..3]]
 => nil
~~~