add a crlf workaround similar to the one from freewrt