Add ~ to the list of allowable URL characters.

According to http://tools.ietf.org/html/rfc3986, ~ is a legal character in URLs.