Fixed bug where quotes were not escaped on copying to clipboard