naive but more accepting URI.parse implementation