Use utf-8 decoding for pasted data.
Strip newline characters from pasted data.