Allow an explicitly-specified endOffset to override the value returned b...

...y CharSequence.length() (fixes #70)