Convert hash to query before sending post request. Fixes #3.