Parse uris without using regular expressions
Remove unreferenced binding