Queries get saved to and parsed from the URL

fixes #204 
You want `encodeURIComponent`: http://stackoverflow.com/a/3608791/388951