Refs #17797 Naaya; fix uploading of images when filename is non-ascii

git-svn-id: https://svn.eionet.europa.eu/repositories/Naaya/trunk/eggs@20652 a0171fae-0946-0410-966d-b1775066cd26