fixed indexing glitch--encoding URL parameters