Raise a RangeError when codepoint is invalid for the default internal encoding

This depends on https://github.com/jruby/jcodings/pull/5.