Remove trailing slashes from the domain if they exist.