Encode the url properly

For example when clicking the delete all link on `mybblog.php?action=view&id=1` the delete link will redirect to `mybblog.php?action=view` as the `&` isn't encoded properly. The url should be completly encoded so all parameters will be added to the redirect url.