Fix cURL parsing with invalid blanks