Fix greediness issue and incorrect matching of schemeless URLs in the default rules