CR LF at the end of the line - how to remove it

During our build process the filter replace task converts the unix format to dos. Is there way to stop this conversion or make sure that the files are always in unix format?