Also saved filenames have a space at the end - "filename.png "
Thank you for your bug report, I just fixed this in trunk.
*** Bug 6006 has been marked as a duplicate of this bug. ***