fix issue with building bad POST requests