Add in support for tilde expansion when saving a file.