Removes characters between () and [] in filenames