Remove endlines when raw mode is set.