fixed some urlencodeerror.