in reply to Parsing issue (null bytes?)
Most likely, your file is encoded as UTF-16.
Try Encode::decode, or opening your file as UTF-16:
open my $log, '<:encoding(UTF-16)', $logfilename or die "Couldn't read '$logfilename': $!"; [download]