fix \r\n in error message