Made split_uri safer, as well as normalize/absolute_uri