fixed url encode the filename