Bug 1027528 part 13 - Remove JSString::hasPureChars etc, and refactor callers. r=njn