def format_backtrace(backtrace)
      backtrace ||= []
      backtrace[0..BACKTRACE_LINES].collect do |line|
        "#{line.gsub(/\n|\`|\'/, '')}".split(//).last(MAX_LINE_LENGTH).join
      end
    end
def format_backtrace(backtrace)
      backtrace ||= []
      backtrace[0..BACKTRACE_LINES].collect do |line|
        "#{line.gsub(/\n|\`|\'/, '')}".split(//).last(MAX_LINE_LENGTH).join
      end
    end
remove backticks, single quotes, \n and ensure each line is reasonably small