Similar to [ngx_mruby's one](http://blog.matsumoto-r.jp/?p=3974).
Similar to ngx_mruby's one.