add support for misc/plugin/attach.rb with encoded filename