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

ref #820
The same problem occurred on padrino.