Urlencode file urls to prevent link issues.