Java's URI class already does url encoding, so we don't need to do this on out side. Closes elastic/elasticsearch#699 Original commit: elastic/x-pack-elasticsearch@612dc99945
Original commit: elastic/x-pack-elasticsearch@c76c012f3d
Original commit: elastic/x-pack-elasticsearch@b70f48d25c