Did anyone stumble upon the problem that ns_urlencode does not encode the "+" character with a "%2B" ?
If your files are name like "?file_name=mytest+malte.gif", the encoding will do nothing about the "+" sign. But the variable "file_name" is set to "mytest malte.gif", as it translates the "+" character rather correctly into a " ".