improve W005 checker by properly parsing URL and checking filename

CC: @hnrch02 
That'd make the regex a bit slower..