ensure api_version is string when creating endpoint urls

refs joeferraro/MavensMate#137