Fixed some bugs in uri.class, but there is still some work to do(index 0 = string(0)