Pathfinding fix, General script updates

Fixed a bug where directories that use certain URL sensitive characters
would not be found properly without URI encoding, now all paths use URI
encoding regardless of composition.