Raise a RangeError when codepoint is invalid for the default internal enc.

Signed-off-by: Charles Oliver Nutter <headius@headius.com>