handle non-ascii chars in urls, log and query main page hits