Check if extra / is necessary for the folder URL
only encodeURIComponent once