URLEncode variable that is being replaced in case spaces exist