Added a missing QDir::toNativeSeparators() call.
Make sure we don't try to delete the input file when running in "overwrite existing file" mode and the input/output happen to be identical.