Bug 10070: fix saving searches with non-ASCII characters to anonymous search history