strip all whitespace chars from the end of the file name

The egofiles.com plugin extracted the filename with some tabs after the extension of the file. The files were saved to disk with the additional chars.