string contains null byte check utility function (mrb_str_to_cstr)

see also
 - http://www.ruby-lang.org/en/news/2012/10/12/poisoned-NUL-byte-vulnerability/
 - iij/mruby's issue https://github.com/iij/mruby/issues/38