Update pcap.rb

Fixes problem with crash when attempting to change encoding on frozen string from hash key