fixing FF bug where hash returns unescaped string