Encode posted data
Encode posted data

When posting data, bytes are needed. The serialized JSON needs to be
encoded before it can be used.

dmakhno/travis_after_all,jbdeboer/travis_after_all,hugovk/travis_after_all