url encode the string