URI: Don't barf on empty scheme
Improve URI tests and fix uncovered bugs