encodeURICompnent for everything that's used in GET. Plain URL for the rest.