Fixed to work with Rails4 and support URL with spaces

This fixes the Issue #13

Maybe it's not the better solution, since the model doesn't overrides the create/new method but it works.

Also I need to shorten URLs with spaces and unescaped characters, so before URI.parse an URI.escape is needed, although URI.normalize will restore the spaces.