Removing double call to decodeURIComponent

Now invokes on `(search || hash`)` directly in the toopen assignment