Bug 973899: Fix usage of temporary string that was causing crashes; r=ehsan