fix endof(SubString) and write(io, SubString)
Merge branch 'master' of github.com:JuliaLang/julia