fixed two bugs related to file uploads:
  - also static files now allow upload of files with utf8 name.
  - empty files can be now uploaded without triggering exceptions