Resolve gsub error for gabba

Resolved issue as seen here: http://stackoverflow.com/questions/18462667/in-escape-undefined-method-gsub-for-urihttp0x007fa07cb01e08-nomethod