Add fix for API when branch names have periods in them.  Relates to issue #6128 (https://github.com/gitlabhq/gitlabhq/issues/6128).