8047359: large string size RangeError should be thrown rather than reporting negative lengthReviewed-by: hannesw, attila