truncate "\r" in generate mirror.list