improve W005 checker by properly parsing URL and checking filename

CC: @hnrch02