When pasting on Webkit, add a nonsense character to work around browser bug

Issue #1474