trim the trailing slash on https:// anchor links - same behaviour as http:// anchor links