Minimal URI parser, written in C