fixup! use substring(BytesRef) in SubstrFunction