Bug 965634 - move nsString construction out of mozilla::dom::Register for a codesize win; r=bz