switch to mutable string-like CharRanges wherever possible