remove stupid \r characters