Avoid defining multibyte method names in JSON decoding test for JRuby Compat

This change is similar to #11736 & in same way switched with fixed string & the index of the hash for method name. the index was added because otherwise, ruby will raise Error.
Rescue on utf8-invalid params key instead of raising ArgumentError.