When using S3 to save an image named "Screen%20shot%202011-07-06%20at%2012.56.16.png", Paperclip generates a URL that is not escaped correctly. The generated URL returns a 401 error from S3, since it does not exist.
However, if you manually escape the percent signs in the file name, you end up with a URL that actually works and retrieves the file that Paperclip saved earlier:
> playlist_item.thumb.url.gsub('%', '%25')
That URL actually works, but I'd really rather not have to add a gsub everywhere that I call the Paperclip #url method. :)
Return a URI.escape'd URL from attachment
It's Paperclip's responsibility to escape special characters from the URL to make sure that it's comply with standard.
Closes #577, Closes #563, and reverse my judgement on #482.