URI parser TOTALLY based on erlware/uri