Added encode method for application/x-www-form-urlencoded