Fix filename method to avoid including authenticated url params