Fix ApiRequest.R debug to work with Windows

Windows didn't like slash character, so wouldn't save json to file