Painless URI and path handling