Test URI fixups and restore 1.8 compatibility.
Add missing files from the gemspec.

I should figure a test to catch this one day...