file transfer: Delete existing file when replacing

When choosing an already existing file as destination for an incoming
file transfer the data was appended to the existing file. This commit
makes sure we delete the existing file before starting the transfer.