Fix Paperclip's io_adapters to properly sanitize original_filename

This should allow tempfiles to be created such that "identify" (and
probably other imagemagick methods) don't flame out.