diff --git a/lib/packetgen/inspect.rb b/lib/packetgen/inspect.rb
index <HASH>..<HASH> 100644
--- a/lib/packetgen/inspect.rb
+++ b/lib/packetgen/inspect.rb
@@ -49,7 +49,7 @@ module PacketGen
             elsif value.respond_to? :to_human
               value.to_human
             else
-              value.to_s
+              value.to_s.inspect
             end
       str << INSPECT_FMT_ATTR % [value.class.to_s.sub(/.*::/, ''), attr, val]
     end
Inspec.inspect_attribute: when call value.to_s, also call #inspect on
resulting string to avoid control character misbehaviour with binary strings.