update http example with EncodeUtil class
Merge pull request #11 from stensonb/update-http-example

update http example with EncodeUtil class