Use dir.toURI().getPath() for better handling on the shitty filesystem os