Replace getPath by toURI, close gatling/gatling#2448