Fix url validation for urls of the form http://example.org/~user

The validator rejected urls like http://example.org/~user because it didn't recognize the tilde character as a valid character.