convert file path into code so it formats nicely