I think I prefer Joel's as it still uses the URI api and is a bit clearer. Went with that.