Update email encode/decode test

Fixed urlencode issue.