Add the type check in mrb_str_to_cstr().
Merge pull request #1001 from monaka/pr-add-type-check-in-mrb_str_to_cstr

Add the type check in mrb_str_to_cstr().