Reverted usage of pack()

The PHP documentation lies, 'a' and 'Z' do NOT behave the same for pack() (but they do for unpack()).