Bug 1032726 part 4 - Beef up JS friend APIs for strings. r=terrence
Bug 1032726 part 5 - Make new DOM bindings work with Latin1 strings. r=bz