Sorted out bug where the stats page broke because some previous search queries were using utf-8.