Ignore punctuation at the end of URL

fix for #39