Adding explicit method to obtain filename from url string to better handle edge cases