Minimal C URI parser