Fix pasting from terminal.