added URI encode for result param

Not encoded param could sometimes cause URISyntaxException on results with "illegal" characters.