Support repositories with dots in the name when making GitHub requests

Repositories can have a dot in their name, e.g. <https://github.com/contentful/contentful.objc> - they're currently broken, as the name will be cut off in front of the dot. 

This is a fix for that, but I am unsure about that regular expression, @irrationalfab was there a reason why it split at dots?