Patch the links method in the String class to support https