Use explicit urlencoded POST data

- avoids problems with signs like &
- use python based json encoding