change filenames on client side to match with safeNames in case of duplication