Check if extra / is necessary for the folder URL
only encodeURIComponent once
update to !==
Merge pull request #1044 from owncloud/fix_extra_slash

Remove duplicate / for first folder in root