# File lib/vpim/rfc2425.rb, line 293
  def Vpim.encode_paramvalue(value)
    case value
    when %r{\A#{Bnf::SAFECHAR}*\z}
      value
    when %r{\A#{Bnf::QSAFECHAR}*\z}
      '"' + value + '"'
    else
      raise Vpim::Unencodable, "param-value #{value.inspect}"
    end
  end