handle complex filenames for uploads