Fix JRuby's incorrect behavior when using utf-8 method name.
Merge pull request #824 from namusyaka/patch-jruby

Fix JRuby's incorrect behavior when using utf-8 method name.