Strips formatting from text before pasting it from the clipboard

GH-231