added encode keys method to TwitterConnectionParams