fixed bug in pastehandler with invalid uris