remove newlines from files