workaround for error caused by mruby-string-utf8

    see also:
      https://github.com/mruby/mruby/tree/master/mrbgems/mruby-string-utf8
      https://github.com/iij/mruby-io/issues/7
add test for the utf8 workaround