Fix issue in Safari on OSX when pasting bare strings.