get url correct query string with single quotes on strings