Fixing bug with URL filter not recognizing urls with ~ in the path.