Recognize the tilde character as valid for the url validator

The regexp used for validating urls didn't recognize the tilde character as a valid character, so valid urls of the form http://example.org/~user would not be validated successfully.