Fixed special characters in pasted text

curl now urlencodes the text so that special characters such as & do not end the upload prematurely.