def escape_extension_value(val)
        escapes = {
          %r{=}  => '\=',
          %r{\n} => ' ',
          %r{\\} => '\\'
        }
        escapes.reduce(val) do |memo,replace|
          memo=memo.gsub(*replace)
        end
      end
def escape_extension_value(val)
        escapes = {
          %r{=}  => '\=',
          %r{\n} => ' ',
          %r{\\} => '\\'
        }
        escapes.reduce(val) do |memo,replace|
          memo=memo.gsub(*replace)
        end
      end
only equals signs need to be escaped in the extension. i think.
 TODO: something in the spec about \n and some others.