Bugfix filename contained cr and lf.

Because of this the file was not able te be renamed.