Logic for normalizing arguments for an http request