fixing filename encoding problem when uploading