Don't save filename started/ended with space.

On Windows native file dialog handles it automatically, but Qt ones don't!