Add function the encode string for uri
Add encoding function to test steps