Throw an exception for ASCII when getting bytes for codepoints out of range.

US-ASCII is a 7-bit encoding so when writing bytes for codepoints > 0x7f,
an exception should be thrown.  Similarly, ASCII-8Bit should throw an exception for codepoints > 0xff.

This is required so that `Integer#chr` correctly raises a RangeException for invalid values.