Fixed incorrect encoding of post parameters