Use bytes (not unicode) for struct.pack formats