fix parsing of url-encoded parameters