* attempting to fix url encoding for filename URLs * handle the case where percent sign exists in the filename / dirname * remove the try/catch as this shouldn't be necessary, changed logic for url encoding links that doesn't involve looping