Bug 1019585 part 3 - Fix JSSubString to work with Latin1 strings. r=terrence

--HG--
extra : rebase_source : bc29bee2826906df79664edae3924990a8eacdb6