specialize length(::SubString{UTF8String}) (#7667)
add test for issue #41