Strip text copied from the clipboard so that users don't get an
"invalid file" error if extraneous whitespace or newlines were copied
to the clipboard...