private DockerClient.BuildParam[] buildParams() 
    throws UnsupportedEncodingException, JsonProcessingException {
    final List<DockerClient.BuildParam> buildParams = Lists.newArrayList();
    if (pullOnBuild) {
      buildParams.add(DockerClient.BuildParam.pullNewerImage());
    }
    if (noCache) {
      buildParams.add(DockerClient.BuildParam.noCache());
    }
    if (!rm) {
        buildParams.add(DockerClient.BuildParam.rm(false));
      }
    if (!buildArgs.isEmpty()) {
      buildParams.add(DockerClient.BuildParam.create("buildargs", 
        URLEncoder.encode(OBJECT_MAPPER.writeValueAsString(buildArgs), "UTF-8")));
    }
    if (!isNullOrEmpty(network)) {
    	buildParams.add(DockerClient.BuildParam.create("networkmode", network));
    }
    return buildParams.toArray(new DockerClient.BuildParam[buildParams.size()]);
  }
Converts all separators to the Unix separator of forward slash.

@param path  the path to be changed, null ignored
@return the updated path
src/main/java/com/spotify/docker/BuildMojo.java