fix #7248: throw boundserror for invalid indices in ind2chr/chr2ind
add checkbounds(s::String, I)
Merge pull request #7249 from stevengj/ind2chr_bounds

fix #7248: throw boundserror for invalid indices in ind2chr/chr2ind