fix slow hash(::SubString{<:ByteString})

Cuts the #8826 vocab.jl benchmark in half.