diff --git a/lib/net/ber/core_ext/true_class.rb b/lib/net/ber/core_ext/true_class.rb index bf199d1e..41c81ec9 100644 --- a/lib/net/ber/core_ext/true_class.rb +++ b/lib/net/ber/core_ext/true_class.rb @@ -6,6 +6,6 @@ module Net::BER::Extensions::TrueClass # Converts +true+ to the BER wireline representation of +true+. def to_ber # http://tools.ietf.org/html/rfc4511#section-5.1 - "\001\001\xFF".force_encoding("ASCII-8BIT") + "\001\001\xFF".b end end