Fixed protocol stripping, since gsub! returns nil if no change
Merge pull request #84 from timcheadle/master

Fixed protocol stripping, since gsub! returns nil if no change