avoid Java ArrayIndex error   e.g. "a\0".force_encoding(utf-32le).chomp
avoid Java ArrayIndex error
  e.g. "a\0".force_encoding(utf-32le).chomp

update isNewLine condition(port from MRI 2.6.6)
  see https://github.com/ruby/ruby/blob/v2_6_6/enc/utf_32le.c

jruby/jcodings,jruby/jcodings