Fixed missing URL parameters encoding when using $window.open.
$location.search(...).path(...) encodes search parameters.