fixed api url creation to support windows