Fixing a problem with URL construction for https requests.
Updating SP name regex to allow a dot in the SP name.