Fix HTTP construction bug affecting Windows environments