Fixed getPathname() method

Current pathname is now decoded with decodeURIComponent to correct %27
and the other specialchars.