--- attach.rb.orig	2013-11-06 14:27:40.000000000 +0900
+++ attach.rb	2013-11-06 14:27:57.000000000 +0900
@@ -127,14 +127,14 @@
   tabstop = ' ' * (@options['attach.tabstop'] ? @options['attach.tabstop'].to_i : 2)
 
   if file_name =~ /\.(txt|rd|rb|c|pl|py|sh|java|html|htm|css|xml|xsl|sql|yaml)\z/i
-    file = "#{@conf.cache_path}/attach/#{escape(page.untaint)}/#{escape(file_name.untaint)}"
+    file = "#{@conf.cache_path}/attach/#{escape(page)}/#{escape(file_name.untaint)}"
     s = %Q!<pre>!
     content = File.readlines(file)
     if @options['attach.show_linenum']
       line = 0
       content.collect! {|i| sprintf("%3d| %s", line+=1, i)}
     end
-    s << h(content.join).gsub(/^\t+/) {|t| tabstop * t.size}.to_euc
+    s << h(content.join).gsub(/^\t+/) {|t| tabstop * t.size}
     s << %Q!</pre>!
   end
 end
