# File lib/net/ber/core_ext/string.rb, line 14
  def to_ber(code = 0x04)
    [code].pack('C') + length.to_ber_length_encoding + self
  end