Create valid path if no api.format specified
Merge pull request #89 from tomdottom/master

Create valid path if no api.format specified