Making Encode Optional

Renaming uriEncodeQuery to remoteQuery