[mod] remove crlf line terminators and trailing whitespaces