Fixes URL Segment generation issue

Fixes issue #43
Merge pull request #45 from arambalakjian/3.1

URL Segment generation issue