handle non-ascii chars in urls, log and query main page hits
set a longer cookie