encode the function

when decoding on the server end decoding logic that takes a + symbol and replace's it with a space. we need to take care to encode the '+' symbol.