Fix for vulnerability CVE-2013-0156

https://groups.google.com/forum/#!topic/rubyonrails-security/61bkgvnSGTQ