Allow tilde's and dashes in URL	. Fixes #4