I've never really used filter so I can't say much about it but you could maybe loop through the file or something and replace each instance of it that way.

$replace($read(...,%x),$crlf,<text>)

Or maybe File Handling, although I've not used that either. Sorry I couldn't be much help.