Fix problem when uploaded file have whitespace.

When there is whitespace in the name, then it is not transformed into link.