Work around regex problem in 1.8.7, which may affect some cases of URI#canonialize!
Remove dependency on Addressable.
Use backports for versions of Ruby < 1.9
More URI canonicalization tests.