Fix issue with pasting URLs