Fixed payload definition to ensure that payloads don't include trailing \r that was breaking requests