Include tilde in url character class

There are plenty of valid urls like http://domain.tld/~user/blah
and it seems unlikely that there are urls that are positioned right
next to a tilde that are expected to stop before it.