title: Add unique suffix to file name
body: <p>Sometimes I need to ensure I'm not overwriting an existing file when saving some data, and I'd like to use a function that appends a suffix similar to how a browser does it - if <code>dir/file.txt</code> exists, it becomes <code>dir/file (1).txt</code>.</p>