Correcting newline replacements in Pastes