Clean up uriToNetworkPacket
- Remove redundant code
- Make top-level block function properly
I do not know why the old code was the way it was, but I am pretty confident that this does exactly the same things, only in an easier-to-read way
I do not know why the old code was the way it was, but I am pretty confident that this does exactly the same things, only in an easier-to-read way